package com.open.capacity.dao;


import com.open.capacity.model.Menu;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface MenuMapper {

    int insert(Menu menu);
    int delete(Long menuid);
    int update(Menu menu);
    List<Menu> findAll();
    List<Menu> findByParent(Long parent);
    Menu findById(Long menuid);
    List<Menu> findParent();
    List<Menu> findNotHide();
    Menu findByName(String mename);
}
